package com.chuang.bootplus.controller;


import com.chuang.bootplus.base.utils.ApiResponse;
import com.chuang.bootplus.po.medal.MedalListPO;
import com.chuang.bootplus.po.medal.MedalSavePO;
import com.chuang.bootplus.service.RelUserMedalService;
import com.chuang.bootplus.vo.MedalListVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author ${author}
 * @since 2021-08-17
 */
@Api(tags = {"用户勋章"})
@RestController
@RequestMapping("/relUserMedal")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class RelUserMedalController {

    private final RelUserMedalService relUserMedalService;

    @ApiOperation("查询当前用户拥有的勋章")
    @PostMapping("medalList")
    public ApiResponse<MedalListVO> medalList(@RequestBody MedalListPO po){
        return relUserMedalService.medalList(po);
    }

}

